<?php
require  'sesion.php';
if(!empty($_SESSION['loggedIn']) && !empty($_SESSION['userId'])){
	session_destroy();
	$_SESSION['loggedIn'] = null;
	$_SESSION['userId'] = null;
	header('location: login.php');
}else{
	header('location: login.php');
}